package com.sc.service;

import com.sc.dal.common.pagination.Page;
import com.sc.dal.common.pagination.PaginationBean;



public interface BaseService<T> {
	public PaginationBean<T> getPagingDatas(T o,Integer currPage,Integer pageSize,String countMethod,String queryMethod,Class<?> cls) throws Exception;
	
	/**
	  * <h2>重载的分页查询，分页信息采用对象传递</h2>
	  * @Title: getPagingDatas
	  * @Description: 重载的分页查询，分页信息采用对象传递
	  * @param @param o
	  * @param @param page 封装分页信息（总页数，总记录数，当前页，每页记录数）
	  * @param @param count
	  * @param @param query
	  * @param @throws Exception
	  * @return PaginationBean<T>    返回类型
	  * @throws Exception
	 */
	public PaginationBean<T> getPagingDatas(T o,Page page,String countMethod,String queryMethod,Class<?> cls) throws Exception;
	
	public PaginationBean<T> queryForListByPagination(T o, Page page,String count,String query) throws Exception;
}
